/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ui.user;

import hibernate.entity.Accounts;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import ui.common.AbstractUIBean;

/**
 *
 * @author Neo
 */
@ManagedBean
@RequestScoped
public class AbstractUserBean extends AbstractUIBean {

    /**
     * Creates a new instance of AbstractUserBean
     */
    public AbstractUserBean() {
    }

    public Accounts getCurrentLogin() {
        try {
            return (Accounts) session.getAttribute("currLogin");
        } catch (Exception ex) {
            return null;
        }
    }
}
